package com.appspot.finajjarane.web.mvc.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/error")
public class Error {

	@RequestMapping("/{code}")
	public ModelAndView returnPageCode(@PathVariable("code") final String errorCode){

		return new ModelAndView("errors/" + errorCode);

	}

}
